package com.ryan.spring.annotation.java8;

/**
 * Created by kaimin on 29/1/2019.
 * time : 18:07
 */
public class FuntionRun {
    public static void main(String[] args) {

        excute(new Runnable() {
            public void run() {
                System.out.println("run");
            }
        });

        excute(()-> System.out.println("run lamda"));
    }

    public static void excute(Runnable runnable) {
        runnable.run();
    }
}
